/*
 * XML Type:  InvestmentAccountInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentAccountInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InvestmentAccountInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InvestmentAccountInfoImpl extends net.ofx.types.x2003.x04.impl.AbstractAccountInfoImpl implements net.ofx.types.x2003.x04.InvestmentAccountInfo
{
    
    public InvestmentAccountInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INVACCTFROM$0 = 
        new javax.xml.namespace.QName("", "INVACCTFROM");
    private static final javax.xml.namespace.QName USPRODUCTTYPE$2 = 
        new javax.xml.namespace.QName("", "USPRODUCTTYPE");
    private static final javax.xml.namespace.QName CHECKING$4 = 
        new javax.xml.namespace.QName("", "CHECKING");
    private static final javax.xml.namespace.QName SVCSTATUS$6 = 
        new javax.xml.namespace.QName("", "SVCSTATUS");
    private static final javax.xml.namespace.QName INVACCTTYPE$8 = 
        new javax.xml.namespace.QName("", "INVACCTTYPE");
    private static final javax.xml.namespace.QName OPTIONLEVEL$10 = 
        new javax.xml.namespace.QName("", "OPTIONLEVEL");
    
    
    /**
     * Gets the "INVACCTFROM" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount getINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "INVACCTFROM" element
     */
    public void setINVACCTFROM(net.ofx.types.x2003.x04.InvestmentAccount invacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().find_element_user(INVACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTFROM$0);
            }
            target.set(invacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "INVACCTFROM" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccount addNewINVACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccount target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccount)get_store().add_element_user(INVACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "USPRODUCTTYPE" element
     */
    public net.ofx.types.x2003.x04.UsProductEnum.Enum getUSPRODUCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USPRODUCTTYPE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.UsProductEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "USPRODUCTTYPE" element
     */
    public net.ofx.types.x2003.x04.UsProductEnum xgetUSPRODUCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UsProductEnum target = null;
            target = (net.ofx.types.x2003.x04.UsProductEnum)get_store().find_element_user(USPRODUCTTYPE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "USPRODUCTTYPE" element
     */
    public void setUSPRODUCTTYPE(net.ofx.types.x2003.x04.UsProductEnum.Enum usproducttype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USPRODUCTTYPE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USPRODUCTTYPE$2);
            }
            target.setEnumValue(usproducttype);
        }
    }
    
    /**
     * Sets (as xml) the "USPRODUCTTYPE" element
     */
    public void xsetUSPRODUCTTYPE(net.ofx.types.x2003.x04.UsProductEnum usproducttype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.UsProductEnum target = null;
            target = (net.ofx.types.x2003.x04.UsProductEnum)get_store().find_element_user(USPRODUCTTYPE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.UsProductEnum)get_store().add_element_user(USPRODUCTTYPE$2);
            }
            target.set(usproducttype);
        }
    }
    
    /**
     * Gets the "CHECKING" element
     */
    public net.ofx.types.x2003.x04.BooleanType.Enum getCHECKING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKING$4, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BooleanType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "CHECKING" element
     */
    public net.ofx.types.x2003.x04.BooleanType xgetCHECKING()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CHECKING$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "CHECKING" element
     */
    public void setCHECKING(net.ofx.types.x2003.x04.BooleanType.Enum checking)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKING$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CHECKING$4);
            }
            target.setEnumValue(checking);
        }
    }
    
    /**
     * Sets (as xml) the "CHECKING" element
     */
    public void xsetCHECKING(net.ofx.types.x2003.x04.BooleanType checking)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BooleanType target = null;
            target = (net.ofx.types.x2003.x04.BooleanType)get_store().find_element_user(CHECKING$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BooleanType)get_store().add_element_user(CHECKING$4);
            }
            target.set(checking);
        }
    }
    
    /**
     * Gets the "SVCSTATUS" element
     */
    public net.ofx.types.x2003.x04.ServiceStatusEnum.Enum getSVCSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SVCSTATUS$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.ServiceStatusEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "SVCSTATUS" element
     */
    public net.ofx.types.x2003.x04.ServiceStatusEnum xgetSVCSTATUS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServiceStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().find_element_user(SVCSTATUS$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "SVCSTATUS" element
     */
    public void setSVCSTATUS(net.ofx.types.x2003.x04.ServiceStatusEnum.Enum svcstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SVCSTATUS$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SVCSTATUS$6);
            }
            target.setEnumValue(svcstatus);
        }
    }
    
    /**
     * Sets (as xml) the "SVCSTATUS" element
     */
    public void xsetSVCSTATUS(net.ofx.types.x2003.x04.ServiceStatusEnum svcstatus)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServiceStatusEnum target = null;
            target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().find_element_user(SVCSTATUS$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServiceStatusEnum)get_store().add_element_user(SVCSTATUS$6);
            }
            target.set(svcstatus);
        }
    }
    
    /**
     * Gets the "INVACCTTYPE" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccountEnum.Enum getINVACCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INVACCTTYPE$8, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.InvestmentAccountEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "INVACCTTYPE" element
     */
    public net.ofx.types.x2003.x04.InvestmentAccountEnum xgetINVACCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccountEnum)get_store().find_element_user(INVACCTTYPE$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "INVACCTTYPE" element
     */
    public boolean isSetINVACCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INVACCTTYPE$8) != 0;
        }
    }
    
    /**
     * Sets the "INVACCTTYPE" element
     */
    public void setINVACCTTYPE(net.ofx.types.x2003.x04.InvestmentAccountEnum.Enum invaccttype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INVACCTTYPE$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INVACCTTYPE$8);
            }
            target.setEnumValue(invaccttype);
        }
    }
    
    /**
     * Sets (as xml) the "INVACCTTYPE" element
     */
    public void xsetINVACCTTYPE(net.ofx.types.x2003.x04.InvestmentAccountEnum invaccttype)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InvestmentAccountEnum target = null;
            target = (net.ofx.types.x2003.x04.InvestmentAccountEnum)get_store().find_element_user(INVACCTTYPE$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.InvestmentAccountEnum)get_store().add_element_user(INVACCTTYPE$8);
            }
            target.set(invaccttype);
        }
    }
    
    /**
     * Unsets the "INVACCTTYPE" element
     */
    public void unsetINVACCTTYPE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INVACCTTYPE$8, 0);
        }
    }
    
    /**
     * Gets the "OPTIONLEVEL" element
     */
    public java.lang.String getOPTIONLEVEL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPTIONLEVEL$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "OPTIONLEVEL" element
     */
    public net.ofx.types.x2003.x04.OptionLevelType xgetOPTIONLEVEL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.OptionLevelType target = null;
            target = (net.ofx.types.x2003.x04.OptionLevelType)get_store().find_element_user(OPTIONLEVEL$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "OPTIONLEVEL" element
     */
    public boolean isSetOPTIONLEVEL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OPTIONLEVEL$10) != 0;
        }
    }
    
    /**
     * Sets the "OPTIONLEVEL" element
     */
    public void setOPTIONLEVEL(java.lang.String optionlevel)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(OPTIONLEVEL$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(OPTIONLEVEL$10);
            }
            target.setStringValue(optionlevel);
        }
    }
    
    /**
     * Sets (as xml) the "OPTIONLEVEL" element
     */
    public void xsetOPTIONLEVEL(net.ofx.types.x2003.x04.OptionLevelType optionlevel)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.OptionLevelType target = null;
            target = (net.ofx.types.x2003.x04.OptionLevelType)get_store().find_element_user(OPTIONLEVEL$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.OptionLevelType)get_store().add_element_user(OPTIONLEVEL$10);
            }
            target.set(optionlevel);
        }
    }
    
    /**
     * Unsets the "OPTIONLEVEL" element
     */
    public void unsetOPTIONLEVEL()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OPTIONLEVEL$10, 0);
        }
    }
}
